using UnityEditor;

namespace LS.GameKit.Editor
{
    [CustomEditor(typeof(SwitcherCommandSender))]
    public class SwitcherCommandSenderInspector : CommandSenderInspector
    {
        protected SerializedProperty m_OneShot;
        protected SerializedProperty m_CommandType;
        protected SerializedProperty m_CommandNegativeType;
        protected SerializedProperty m_IsOn;

        private bool m_CommandToggle;
        protected override void OnEnable()
        {
            base.OnEnable();
            m_OneShot = serializedObject.FindProperty("oneShot");
            m_CommandType = serializedObject.FindProperty("commandType");
            m_CommandNegativeType = serializedObject.FindProperty("commandNegativeType");
            m_IsOn = serializedObject.FindProperty("m_IsOn");
        }

        public override void DrawInspectorItems()
        {
            base.DrawInspectorItems();
            EditorGUILayout.Space(15);
            EditorGUILayout.PropertyField(m_OneShot);
            EditorGUILayout.PropertyField(m_CommandType);
            EditorGUILayout.PropertyField(m_CommandNegativeType);
            EditorGUILayout.PropertyField(m_IsOn);
        }
    }
}
